home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Source / GNU / libg++ / libio / stdio / putw.c < prev    next >
C/C++ Source or Header  |  1994-02-15  |  238b  |  16 lines

  1. #include "libioP.h"
  2. #include "stdio.h"
  3.  
  4. #undef putw
  5.  
  6. int
  7. putw(w, fp)
  8.      int w;
  9.      FILE *fp;
  10. {
  11.   _IO_size_t written;
  12.   COERCE_FILE(fp);
  13.   written = _IO_sputn(fp, (const char *)&w, sizeof(w));
  14.   return written == sizeof(w) ? 0 : EOF;
  15. }
  16.